package com.tencent.sr.iris.activity.interfaces.request.acticity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author xiaojun
 */
@Data
@ApiModel("用户活动参与记录请求参数")
@NoArgsConstructor
@AllArgsConstructor
public class UpdateUserTaskRecordRequest {

    @ApiModelProperty(name = "用户参与记录的bizId", required = true)
    @NotNull
    private String recordBizId;

    @NotNull
    @ApiModelProperty(name = "uid", required = true)
    private String uid;

    @ApiModelProperty(name = "用户任务状态 0：进行中 1：已完成 2：未完成")
    private Byte userTaskStatus;

    @ApiModelProperty("当前任务开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date currentTaskStartTime;

    @ApiModelProperty("当前任务截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date currentTaskEndTime;
}
